package com.ggboy.item_bank.service.imp;

import com.ggboy.item_bank.beans.Specialty;
import com.ggboy.item_bank.dao.SpecialtyDao;
import com.ggboy.item_bank.service.SpecialtyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SpecialtyServiceImpl implements SpecialtyService {
    @Resource
    SpecialtyDao specialtyDao;

    @Override
    public String selectSpNameById(String id) {//根据用户表的学院ID查找对应的学院表的学院信息
        return specialtyDao.selectSpNameById(id);
    }
    @Override
    public List<Specialty> listSpecialty() {//查出所有的学院信息
        return specialtyDao.selectAll();
    }
}
